// 需要用到layout
import Layout from '@/layout'
// 创建路由
export default {
  path: '/employees',
  name: 'employees',
  component: Layout,
  children: [{
    path: '',
    //   name: 'Dashboard',
    component: () => import('@/views/employees/index'),
    meta: { title: '员工', icon: 'people' }
  },
  // 导入页路由
  {
    path: 'import',
    component: () => import('@/views/employees/import'),
    hidden: true
  },
  // 员工详情页detail路由
  {
    // :字段名,可以实现动态传参
    path: 'detail/:id',
    component: () => import('@/views/employees/detail'),
    hidden: true
  },
  // 打印页print
  {
    path: 'print/:id',
    component: () => import('@/views/employees/print'),
    hidden: true
  }
  ]
}
